import {apiRequestList} from "@/common/axios"
import tool from "@/common/tool"
let userMess = JSON.parse(tool.getStorage('userMess'))
let userMessObj = {
  appId: userMess.appId
}
//城市级联
export const cityPage = (params) => apiRequestList.$post('/dt-business/base/city/page',params)
// 根据个人权限查楼盘
export const userBuildingArea = (params)=>{
  return apiRequestList.$post('/dt-business/user/userBuildingArea', Object.assign({}, userMessObj, params, {userId: userMess.userId}))
};
// 个人报表管理
export const userReport = (params)=>{
  return apiRequestList.$post('/dt-business/dataReport/userReport', Object.assign({}, params, {userId: userMess.userId}))
};
// 楼盘报表管理
export const buildingReport = (params)=>{
  return apiRequestList.$post('/dt-business/dataReport/buildingReport', Object.assign({}, params, {userId: userMess.userId}))
};
// 渠道报表管理
export const channelReport = (params)=>{
  return apiRequestList.$post('/dt-business/dataReport/channelReport', Object.assign({}, params, {userId: userMess.userId}))
};
// 渠道配置 - 列表
export const aggChannelQueryGroup = (params)=>{
  return apiRequestList.$post('/dt-business/channel/aggChannelQueryGroup', Object.assign({}, userMessObj, params))
};
// 人员拥有的楼盘列表（不包含子部门）
export const userbuildinglist = (params)=>{
  return apiRequestList.$post('/dt-business/team/user/building/list', Object.assign({}, userMessObj, params, {userId: userMess.userId}))
};
// 查询中台用户信息
export const businessuserget = (params)=>{
  return apiRequestList.$post('/dt-business/user/aggs/user/get', Object.assign({}, userMessObj, params, {userId: userMess.userId}))
};

